<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="cmcc.customer.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 
	String str_customer_id = request.getParameter("customer_id");
	int csutomer_id = 0;
	if(str_customer_id==null&&str_customer_id.equals("")){
		return;
	}
	csutomer_id = Integer.parseInt(str_customer_id);
	Customer c = Customer.getCustomerBycustomer_id(csutomer_id);
	String type="";
	if(c.getId_type().toLowerCase().equals("d")){
		type="身份证";
	}else if(c.getId_type().toLowerCase().equals("a")){
		type="军官证";
	}else if(c.getId_type().toLowerCase().equals("d")){
		type="护照";
	}
%>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'customer_info.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body> 
  	<ul>
		<li> 
			客户Id = <%=c.getCustomer_id() %>
		</li>
		<li> 
			姓名 = <%=c.getCustomer_name() %>
		</li> 
		<li>
			证件类型 = <%=type%>
		</li>
		<li>
			证件号码= <%=c.getId_number() %>
		</li>
		<li> 
			性别 = <%=c.getCustomer_sex() %>
		</li>
		<li> 
			生日 = <%=c.getCustomer_birthday() %>
		</li>
		<li> 
			地址 = <%= c.getCustomer_address() %>
		</li> 
  	</ul>
	    
    
  </body>
</html>
